package b1.conifg.story
{
	public class StepConfig
	{
		//类型
		public var type:int;
		//是否清除原有的控件
		public var clear:Boolean;
		//检查当前家的住址
		public var checkLiveId:int;
		//是否自动进入下一步
		public var autoNextStep:Boolean;
		//是否使鼠标点击无效
		public var mouseDisableFlag:Boolean;
		//鼠标目标对象的位置（只有点击位于这个位置的控件才有效）
		public var targetPosX:Number;
		public var targetPosY:Number;
		//播放的声音类名字
		public var soundName:String;
		
		public function StepConfig(stepXML:XML)
		{
			if (stepXML != null)
			{
				type = parseInt(stepXML.type);
				clear = Boolean(parseInt(stepXML.clear));
				checkLiveId = parseInt(stepXML.checkLiveId);
				autoNextStep = Boolean(parseInt(stepXML.autoNextStep));
				soundName = stepXML.soundName;
				var disableMouseStr:String = stepXML.disableMouse;
				if (disableMouseStr != "")
				{
					var posStrs:Array = disableMouseStr.split(",");
					targetPosX = parseFloat(posStrs[0]);
					targetPosY = parseFloat(posStrs[1]);
					mouseDisableFlag = true;
				}
				else
				{
					mouseDisableFlag = false;
				}
			}
		}

	}
}